let $ = layui.jquery;
let jQuery=$;
let SettingData = {};//配置文件参数
let SeleteData = {};//筛选参数
let current =1;
let raw = '';//排序
let InitData={};
let table_config = {
    "header": {
        "button": [
            {
                "title": "批量删除",
                "icon": "",
                "btn_class": "btn_theme_2",
                "is_drop": 2,
                "type": "ajax",
                "url": "/admin/sensitive/batch_delete/?ids={d.id}",
                "where": "",
                "width": 0,
                "height": 0,
                "node": "admin:sensitive:batch_delete"
            }
        ],
        "tab": [],
        "search": {
            "datetime": [],
            "like": "表名|字段名|应用名称|控制器名称|方法名称|IP"
        },
        "sum": []
    },
    "left": {
        "status": 2,
        "title": null,
        "options_id": null,
        "key_field": "value",
        "show_field": "label",
        "field": null,
        "type": 1,
        "url": {
            "title": "",
            "list": "/common/options/leftlists/?num=",
            "add": "",
            "edit": "",
            "delete": "",
            "width": "",
            "height": ""
        }
    },
    "source": "",
    "table": {
        "button": [
            {
                "title": "删除",
                "icon": "",
                "btn_class": "btn_theme_2",
                "is_drop": 2,
                "type": "ajax",
                "url": "/admin/sensitive/delete/?id={d.id}",
                "where": "",
                "width": 0,
                "height": 0,
                "node": "admin:sensitive:delete"
            },
            {
                "title": "查看",
                "icon": "",
                "btn_class": "btn_theme_0",
                "is_drop": 2,
                "type": "window",
                "url": "/admin/sensitive/detail/?id={d.id}",
                "where": "",
                "width": 0,
                "height": 0,
                "node": "admin:sensitive:detail"
            }
        ],
        "style": 1,
        "parent_id": "parent_id",
        "parent_name": "title",
        "limit": 30,
        "tab_sum": "",
        "page": true,
        "elem": "datatable",
        "height": "full-85",
        "update": "/admin/sensitive/update_field/",
        "url": "/admin/sensitive/index/",
        "cols": [
            {
                "id": "1721966799_35_1",
                "field": "comment",
                "title": "表名"
            },
            {
                "id": "1721966811_35_4",
                "field": "field_comment",
                "title": "字段名"
            },
            {
                "id": "1722866577_35_8",
                "field": "app",
                "title": "应用名称"
            },
            {
                "id": "1722866578_35_9",
                "field": "controller",
                "title": "控制器名称"
            },
            {
                "id": "1722866579_35_10",
                "field": "action",
                "title": "方法名称"
            },
            {
                "id": "1721966807_35_2",
                "field": "update_before",
                "title": "修改前"
            },
            {
                "id": "1721966808_35_3",
                "field": "update_after",
                "title": "修改后"
            },
            {
                "id": "1721966813_35_5",
                "field": "ip",
                "title": "IP"
            },
            {
                "id": "1721966818_35_8",
                "field": "create_id",
                "title": "修改人"
            },
            {
                "id": "1721966817_35_7",
                "field": "create_time",
                "title": "修改时间",
                "width": "160",
                "minWidth": "160"
            }
        ]
    }
};
let form_config = {
    detail:'/admin/sensitive/detail/',
    add:'/admin/sensitive/add/',
    edit:'/admin/sensitive/edit/',
    data:{
    "name": "",
    "comment": "",
    "update_before": "",
    "update_after": "",
    "app": "",
    "controller": "",
    "action": "",
    "data_id": "",
    "field_name": "",
    "field_comment": "",
    "ip": "",
    "datas": ""
},
    label_width:'',
    form_label:'form_right',
    onclick:[],
};
